package com.vhall.component.entity.tag.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author guoxin.wang
 * @date 2021-07-05 19:14
 */
@Data
public class TagOrderVO implements Serializable {

    private static final long serialVersionUID = 5827915229989606817L;

    /**
     * token
     */
    @ParamName("token")
    private String token;

    /**
     * name
     */
    @Pattern(regexp = "\\d+(,\\d+)*", message = "tag_ids的格式类似于1,2,3,4")
    @NotBlank(message = "tag_ids参数错误")
    @ParamName("tag_ids")
    private String tagIds;

    @Pattern(regexp = "\\d+(,\\d+)*", message = "排序参数格式错误")
    @NotBlank(message = "rank参数错误")
    @ParamName("rank")
    private String rank;

}
